package View;

import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPasswordField;
import javax.swing.JTextField;

/**
 * View zum Speichern
 * 
 * @author Niklas Wazal
 * @version 1.1.0 - 09.09.2014
 */
public class VSpeichern extends VView {
	/**
		 * 
		 */
	private static final long serialVersionUID = 1L;

	private JButton btn_speichern = new JButton("Speichern");
	private JLabel lb_user = new JLabel("BSCW Username: ");
	private JLabel lb_passwort = new JLabel("BSCW Passwort: ");

	private JLabel lb_dateiname = new JLabel("Dateiname: ");
	private JTextField tf_dateiname = new JTextField();
	private JTextField tf_user = new JTextField();
	private JPasswordField tf_passwort = new JPasswordField();
	private JLabel lb_gso = new JLabel("Georg-Simon-Ohm Berufskolleg");

	/**
	 * Konstruktor
	 */
	public VSpeichern() {
		init();
	}

	/**
	 * Initiale Methode
	 */
	public void init() {

		lb_dateiname.setBounds(20, 260, 130, 20);
		lb_dateiname.setEnabled(true);

		tf_dateiname.setBounds(140, 260, 100, 20);
		tf_dateiname.setEnabled(true);

		btn_speichern.setBounds(620, 20, 100, 20);
		btn_speichern.setEnabled(true);

		lb_user.setBounds(20, 180, 130, 20);
		lb_user.setEnabled(true);

		tf_user.setBounds(140, 180, 100, 20);
		tf_user.setEnabled(true);

		lb_passwort.setBounds(20, 220, 130, 20);
		lb_passwort.setEnabled(true);

		tf_passwort.setBounds(140, 220, 100, 20);
		tf_passwort.setEnabled(true);

		lb_gso.setBounds(20, 20, 100, 20);
		lb_gso.setEnabled(true);

		add(lb_dateiname);
		add(tf_dateiname);
		add(tf_user);
		add(lb_user);
		add(btn_speichern);
		add(lb_gso);
		add(tf_passwort);
		add(lb_passwort);
	}

	public JButton getBtn_speichern() {
		return btn_speichern;
	}

	public void setBtn_speichern(JButton btn_speichern) {
		this.btn_speichern = btn_speichern;
	}

	public JLabel getLb_user() {
		return lb_user;
	}

	public void setLb_user(JLabel lb_user) {
		this.lb_user = lb_user;
	}

	public JLabel getLb_passwort() {
		return lb_passwort;
	}

	public void setLb_passwort(JLabel lb_passwort) {
		this.lb_passwort = lb_passwort;
	}

	public JTextField getTf_user() {
		return tf_user;
	}

	public void setTf_user(JTextField tf_user) {
		this.tf_user = tf_user;
	}

	public JPasswordField getTf_passwort() {
		return tf_passwort;
	}

	public void setTf_passwort(JPasswordField tf_passwort) {
		this.tf_passwort = tf_passwort;
	}

	public JLabel getLb_gso() {
		return lb_gso;
	}

	public void setLb_gso(JLabel lb_gso) {
		this.lb_gso = lb_gso;
	}

	public JLabel getLb_dateiname() {
		return lb_dateiname;
	}

	public void setLb_dateiname(JLabel lb_dateiname) {
		this.lb_dateiname = lb_dateiname;
	}

	public JTextField getTf_dateiname() {
		return tf_dateiname;
	}

	public void setTf_dateiname(JTextField tf_dateiname) {
		this.tf_dateiname = tf_dateiname;
	}

}
